package com.yjz.designpattern.singletonpattern.enumSingleTon;

/**
 * @author :yuanJinZhong
 * @description:公司枚举用法
 * @date :2018/5/10-9:30
 */
public enum SaveTypeEnum {
  GENERAL_SAVE("1", "普通保存"),
  PUBLISH_SAVE("2", "发布保存"),
  BUILD_TASK_SAVE("3", "生成委托保存"),
  ENQUIRY_TASK_SAVE("4", "询价保存"),
  //
  ;

  private String key;

  private String value;


  SaveTypeEnum(String key, String value) {
    this.key = key;
    this.value = value;
    System.out.println("加载即执行");
  }

  public String getKey() {
    return key;
  }

  public String getValue() {
    return value;
  }

}
